<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="style/style.css" type="text/css" />
    <style type="text/css">
        .formupdate{
            font-weight:bold;
            padding:3px 10px;
        }
        #submit{
            margin: 10px 0px;
        }
        ul li{
            color:#FF3300;
            list-style-type:none;
            font-size:20px;
        }
        .error{
            color: red;
            font-size: 13px;
            margin-left: 60px;
            margin-bottom: 20px;
        }
        input{
            height: 23px;
        }
        .edit{
            margin: 10px 0px 30px 150px;
            font-size: 30px;
            color: #FC3;
        }
    </style>
</head>
<body id="add">
<div class="divadd">
    <form action="" method="post">
        <h3 class="edit">Edit Category</h3>
        <?php echo validation_errors('<div class="error">', '</div>'); ?>
        <p class="error"><?php echo $errors;?></p>
        <table border="0">

            <tr>
                <td class="formupdate">Name</td>
                <td><input type="text" name="name" size="22" value="<?php echo $info['cate_name']; ?>" /></td>
            </tr>
            <tr>
                <td class="formupdate">Category Parent</td>
                <td><select name="category">
                        <option value="0">--Chọn Category--</option>
                        <?php if($list_parent != NULL){ ?>
                            <?php $i=1; foreach($list_parent as $data){ ?>
                                <?php if($data['cate_parent'] != $info['cate_id'] ){ ?>
                                <option value="<?php echo $data['cate_id']; ?>"><?php echo $data['cate_name']; ?></option>
                            <?php } } } ?>
                    </select></td>
            </tr>


            <tr>
                <td></td>
                <td><input id="submit" type="submit" name="submit" value="Move" /></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
